/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package questao07;

/**
 *
 * @author SDKW
 */
public abstract class Seguranca {
    
    protected Alarme observado = null;
    
    public Seguranca(Alarme observado) {
        this.observado = observado;
        this.observado.adicionarObservador(this);
    }
    
    public abstract void alertar(Alarme observado);
}
